package entity;
import java.util.Date;
import java.util.Vector;

public class Personnel {
    private int personnelID;
    private String fullName;
    private String gender;
    private String ethnicity;
    private int departmentID;
    private String title;
    private Date birthDate;
    private String educationLevel;
    private double baseSalary;
    private double positionSalary;
    private double positionAllowance;
    private Date hireDate;
    public Personnel(){

    }
    public Personnel(Vector<Object> a){
        personnelID=(Integer)a.get(0);
        fullName=(String) a.get(1);
        gender=(String)a.get(2) ;
        ethnicity=(String)a.get(3) ;
        departmentID=(Integer)a.get(4);
        title=(String)a.get(5) ;
        birthDate=(Date) a.get(6);
        educationLevel=(String) a.get(7);
        baseSalary=(Double)a.get(8);
        positionSalary=(Double)a.get(9);
        positionAllowance=(Double)a.get(10);
        hireDate=(Date) a.get(11);
    }
    public Vector<Object> getAllattributes(){
        Vector<Object> attributes=new Vector<>();
        attributes.add(personnelID);
        attributes.add(fullName);
        attributes.add(gender);
        attributes.add(ethnicity);
        attributes.add(departmentID);
        attributes.add(title);
        attributes.add(birthDate);
        attributes.add(educationLevel);
        attributes.add(baseSalary);
        attributes.add(positionSalary);
        attributes.add(positionAllowance);
        attributes.add(hireDate);
        return attributes;
    }
    public int getPersonnelID() {
        return personnelID;
    }

    public void setPersonnelID(int personnelID) {
        this.personnelID = personnelID;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEthnicity() {
        return ethnicity;
    }

    public void setEthnicity(String ethnicity) {
        this.ethnicity = ethnicity;
    }

    public int getDepartmentID() {
        return departmentID;
    }

    public void setDepartmentID(int departmentID) {
        this.departmentID = departmentID;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getEducationLevel() {
        return educationLevel;
    }

    public void setEducationLevel(String educationLevel) {
        this.educationLevel = educationLevel;
    }

    public double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }

    public double getPositionSalary() {
        return positionSalary;
    }

    public void setPositionSalary(double positionSalary) {
        this.positionSalary = positionSalary;
    }

    public double getPositionAllowance() {
        return positionAllowance;
    }

    public void setPositionAllowance(double positionAllowance) {
        this.positionAllowance = positionAllowance;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }
}
